# In order to make it easier to audit the signal handler code, we use very
# restrictive include rules to limit the amount of code that the signal handler
# can depend on.

include_rules = [
  "-src",
  "-include",
  "+src/trap-handler",
]

specific_include_rules = {
  "trap-handler.h": [
    "+src/base/build_config.h",
    "+src/common/globals.h",
    "+src/flags/flags.h",
  ],
  "handler-inside-posix.h": [
    # To access V8_OS_LINUX. This file is already included in build_config.h.
    "+include/v8config.h",
  ],
  "handler-inside-win.h": [
    "+src/base/macros.h",
  ]
}
